// import axios from '@/utils/request'
export default {
  MaterialCategory: {
    entity: { name: 'Category', prefix: `manage` },
    form: {
      fields: [
        'name',
        {
          property: 'type',
          default_value: 5
        },
        { property: 'enabled', required: false, default_value: true },
        { property: 'sequence', required: false, default_value: 255 }
      ]
    },
    list: {
      query: {
        '@filter': `entity.getType().getSlug() == 'material'`
      },
      list_display: [
        'id',
        'name',
        'type',
        'enabled',
        'sequence'
      ],
      list_filter: {
        'name': '名称'
      }
    }
  }
}